﻿//
// GNS_PvpApplyTick.h
// MobileManageSys
//FuncTion  人人对战收税分成
// Created by mr.l on 16/1/16.
//
//

#ifndef __MobileManageSys__GNS_PvpApplyTick__
#define __MobileManageSys__GNS_PvpApplyTick__

#include "cocos2d.h"
#include "cocostudio/CocoStudio.h"
#include "ui/CocosGUI.h"
#include "GNS_Calendar.h"
#include "GNS_DailyDate.h"
#include "GNS_DailyPlayDate.h"
//#include "GNS_YJFLayer.h"

USING_NS_CC;
using namespace cocostudio::timeline;
using namespace ui;

class GNS_PvpApplyTick : public Layer
{
public:
    GNS_PvpApplyTick();
    ~GNS_PvpApplyTick();
    static GNS_PvpApplyTick* createLayer();
    virtual bool init();
    CREATE_FUNC(GNS_PvpApplyTick);
    void SetNodeName(std::string CsbName);
    void AcceptSeverDate();
    void SeleLayer(int LayerNum);
    GNS_DailyDate * _pDailyDate;
    ListView * GameType;
    //void onExit();
private:
    void BtnCallBack(Ref *pSender , ui::Widget::TouchEventType type);
    void ListViewCallBack(Ref*pSender,ui::Widget::TouchEventType type);
    void TitleChooseType(ImageView * type);
    void TimeButtonCallBack(Ref*pSender,ui::Widget::TouchEventType type);
//    void SelectedItemEvents(Ref*pSender,ui::ListView::EventType type);
    void ListViewBtn(Ref * pSender ,ui::Widget::TouchEventType type);
private:
    Node * m_PopWndNode;  //m_PopWndNode
    Text * TimeText;
    Text * GameName;
    ImageView * AllTitle;
    ImageView * AgentTitle;
    ImageView * PromoterTitle;
    ImageView * PlayerTitle;
   // ListView * pDateListVisw;
    ListView *  allDataShow;
    ListView * pTypeListVisw;
    Text * ShowText;
    std::vector<ImageView *> TitleVec;
    Text * AllDate;
    ImageView * AllDateBg;
    GNS_Calendar * pCalendar;
    int RecordlineCode;
    int typeNum;
    int SendType;
    int Mon;
    int Year;
    int Day;
};

#endif /* defined(__MobileManageSys__GNS_PvpApplyTick__) */